$(document).ready(function(){
	$(window).load(function(){
//		获取验证码
		$('#change1').click(function(){
			
			var number0=Math.floor(Math.random()*9000+1000);
			change.innerHTML=number0;
		})
//		cookie




		function setCookies(key,value,iDays){
		var day= new Date();
		day.setDate(day.getDate()+iDays);
		document.cookie= key+ "="+ value+";expires="+day+";path=/";
	  }
	 function getCookie(key){
	    var str = document.cookie;  
		var arr = str.split("; ");
		for(var i=0;i<arr.length;i++){
		  var arr2= arr[i].split("=");  
		  if(key==arr2[0]){
		    return arr2[1]
		  }
		}
		return "";
	  }
	 
		$('.holder').click(function(){
		getCookie('test2');
		getCookie('validate');
		})
//		console.log(getCookie("tex"));
		//tex.value=getCookie("tex");
		//psd.value=getCookie("psd");
		
		
		
		
		
		
		
	})
	
})





